<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script
    src="https://webapi.amap.com/maps?v=1.4.11&key=7ab53b28352e55dc5754699add0ad862&plugin=AMap.PlaceSearch"></script>
  <script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" />
  <script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script>
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    {{obj}}
    <avue-form :option="option" v-model="obj"></avue-form>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        obj: {
          icon: ''
        },
        option: {
          column: [
            {
              label: '图标',
              prop: 'icon',
              type: 'icon',
              iconList: [{
                label: '基本图标',
                list: [{
                  label: '名称1',
                  value: 'el-icon-info'
                }, {
                  label: '名称2',
                  value: 'el-icon-error'
                }, {
                  label: '名称3',
                  value: 'el-icon-success'
                }, {
                  label: '名称4',
                  value: 'el-icon-warning'
                }, {
                  label: '名称5',
                  value: 'el-icon-question'
                }]
              }, {
                label: '方向图标',
                list: ['el-icon-info', 'el-icon-back', 'el-icon-arrow-left', 'el-icon-arrow-down', 'el-icon-arrow-right', 'el-icon-arrow-up']
              }, {
                label: '符号图标',
                list: ['el-icon-plus', 'el-icon-minus', 'el-icon-close', 'el-icon-check']
              }, {
                label: '阿里云图标',
                list: ['icon-zhongyingwen', 'icon-rizhi1', 'icon-bug', 'icon-qq1', 'icon-weixin1']
              }],
              rules: [
                {
                  required: true,
                  message: '请选择地图',
                  trigger: 'change'
                }
              ]
            },
          ]
        }
      }
    }
  })
</script>

</html>